<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <title>Admin</title>
  <?php echo $this->headLink()->appendStylesheet('/back/css/style.default.css'); ?>   
  <script type="text/javascript" src="/back/js/plugins/jquery-1.7.min.js"></script>
  <script type="text/javascript" src="/back/js/plugins/jquery-ui-1.8.16.custom.min.js"></script>
  <script type="text/javascript" src="/back/js/plugins/jquery.cookie.js"></script>
  <script type="text/javascript" src="/back/js/plugins/jquery.uniform.min.js"></script>
  <script type="text/javascript" src="/back/js/plugins/jquery.jgrowl.js"></script>
  <!--<script type="text/javascript" src="/admin/js/plugins/jquery.flot.min.js"></script>
  <script type="text/javascript" src="/admin/js/plugins/jquery.flot.resize.min.js"></script>-->
  <script type="text/javascript" src="/back/js/plugins/jquery.slimscroll.js"></script>

  <script type="text/javascript" src="/back/js/custom/general.js"></script>

  <!--<script type="text/javascript" src="/admin/js/custom/dashboard.js"></script>-->
  <script type="text/javascript" src="/back/js/custom/tables.js"></script>
  <script type="text/javascript" src="/back/js/plugins/jquery.dataTables.min.js"></script>
  <?php //echo $this->headScript()->appendFile('/admin/js/plugins/jquery-1.7.min.js'); ?>      
	  <!--[if lte IE 8]><script language="javascript" type="text/javascript" src="/admin/js/plugins/excanvas.min.js"></script><![endif]-->
	<!--[if IE 9]>
	    <link rel="stylesheet" media="screen" href="/admin/css/style.ie9.css"/>
	<![endif]-->
	<!--[if IE 8]>
	    <link rel="stylesheet" media="screen" href="/admin/css/style.ie8.css"/>
	<![endif]-->
	<!--[if lt IE 9]>
		<script src="http://css3-mediaqueries-js.googlecode.com/svn/trunk/css3-mediaqueries.js"></script>
	<![endif]-->
</head>

<body class="withvernav">
    <div class="bodywrapper">
        <div class="topheader">
            <div class="left">
	            <h1 class="logo">Elfac</h1>
	            <span class="slogan">adminastrative</span>                                  
	            <br clear="all" />            
            </div><!--left-->
            <div class="right">        	
	            <!--<div class="userinfo">	            	-->
	                <a href="/login/logout"><span>Logout</span></a>
	            <!--</div><!--userinfo-->
            </div><!--right-->
        </div><!--topheader-->

	    <div class="vernav2 iconmenu">	    	
	    	<ul>
	    		<li><a href="#" class="typo">Главная</a></li>
	        	<li><a href="#content" class="buttons">Материалы</a>
	            	<span class="arrow"></span>
	            	<ul id="content">
	               		<li><a href="/admin/content/">Все материалы</a></li>
	                    <li><a href="/admin/content/add-post">Добавить материал</a></li>
	                </ul>
	            </li>
	            <li><a href="#category" class="elements">Категории</a>
	            	<span class="arrow"></span>
	            	<ul id="category">
	               		<li><a href="/admin/category">Все категории</a></li>
        				<li><a href="/admin/category/add-category">Создать категорию</a></li> 
        				<li><a href="/admin/category/change-category-position">Позиции категорий</a></li>           
	                </ul>
	            </li>
	            <li><a href="#announcement" class="calendar">Объявления</a>
	            	<span class="arrow"></span>
	            	<ul id="announcement">
	               		<li><a href="/admin/announcement">Все объявления</a></li>
				        <li><a href="/admin/announcement/add-announcement">Создать объявление</a></li>
	                </ul>
	            </li>
	            <?php if (Zend_Auth::getInstance()->getIdentity()->role == 'admin'): ?>
		            <li><a href="#user" class="support">Users</a>
		            	<span class="arrow"></span>
		            	<ul id="user">
		               		<li><a href="/admin/user">All users</a></li>
	    					<li><a href="/admin/user/add-user">Create user</a></li>
		                </ul>
		            </li>
		            <li><a href="#access_rights" class="addons">Access rights</a>
		            	<span class="arrow"></span>
		            	<ul id="access_rights">
		               		<li><a href="/admin/roles">All roles</a></li>
	    					<li><a href="/admin/roles/add-role">Create role</a></li>
		                </ul>
		            </li>
		            <li><a href="#settings" class="error">Settings</a>
		            	<span class="arrow"></span>
		            	<ul id="settings">
		               		<li><a href="#">1</a></li>
	    					<li><a href="#">2</a></li>
		                </ul>
		            </li>
		        <?php endif; ?>
	        </ul>
	        <a class="togglemenu"></a>
	        <br /><br />
	    </div><!--leftmenu-->  	    
	    <?php echo $this->layout()->content; ?>   	    
    </div><!--bodywrapper-->
</body>